package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//创建启动类

@Slf4j
@MapperScan("com.itheima.reggie.mapper") //开启对mybatis的管理
@SpringBootApplication //主类
@EnableTransactionManagement //开启对事务类的管理
@EnableCaching//开启redis注解
public class WebManageApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebManageApplication.class,args);
        log.info("程序运行成功");
    }
}

